package com.molichuxing.services.infrastructure.service;

import java.util.List;

import com.molichuxing.framework.service.RootService;

/**
 * 
 * @author liyg
 *
 */
public interface AdvertisingStoreService extends RootService{

	/**
	 * 根据门店id查询广告id
	 * @param storeId
	 * @return
	 */
	Integer getAdvertIdByStoreId(Integer storeId);
	
	/**
	 * 根据广告id查询绑定门店数量
	 * @param advertId
	 * @return
	 */
	Integer getStoreCountByAdvertId(Integer advertId);
	
	/**
	 * 根据广告id获取门店id
	 * @param advertId
	 * @return
	 */
	List<Integer> getAdvertisingStoreByAdvertId(Integer advertId);
	
	/**
	 * 新增门店与广告的关系
	 * @param storeIds
	 * @param advertId
	 * @return
	 */
	Boolean createAdvertStore(List<Integer> storeIds, Integer advertId);
	
}
